<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>商品类型列表</title>
	<script type='text/javascript' src='http://localhost/oshop/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/oshop/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/oshop/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/oshop/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/oshop/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/oshop';
		WEB = 'http://localhost/oshop/admin.php';
		URL = 'http://localhost/oshop/admin.php/Index/GoodsAttr/index/aid/1';
		HDPHP = 'http://localhost/oshop/hdphp/hdphp';
		HDPHPDATA = 'http://localhost/oshop/hdphp/hdphp/Data';
		HDPHPTPL = 'http://localhost/oshop/hdphp/hdphp/Lib/Tpl';
		HDPHPEXTEND = 'http://localhost/oshop/hdphp/hdphp/Extend';
		APP = 'http://localhost/oshop/admin.php/Index';
		CONTROL = 'http://localhost/oshop/admin.php/Index/GoodsAttr';
		METH = 'http://localhost/oshop/admin.php/Index/GoodsAttr/index';
		GROUP = 'http://localhost/oshop/Oshop';
		TPL = 'http://localhost/oshop/Oshop/Admin/Index/Tpl';
		CONTROLTPL = 'http://localhost/oshop/Oshop/Admin/Index/Tpl/GoodsAttr';
		STATIC = 'http://localhost/oshop/Static';
		PUBLIC = 'http://localhost/oshop/Oshop/Admin/Index/Tpl/Public';
		HISTORY = 'http://localhost/oshop/admin.php/Index/GoodsType/index';
		HTTPREFERER = 'http://localhost/oshop/admin.php/Index/GoodsType/index';
</script>
</head>
<body>
	<div class="menu_list">
					<ul>
						<li>
							<a class="action" href="<?php echo U('GoodsType/index');?>">
								商品类型
							</a>
						</li>
						<li>
							<a href="<?php echo U('add',array('aid'=>$_GET[aid]));?>">
								添加属性
							</a>
						</li>
						
					</ul>
				</div>
		<table class="table2">
		    <thead>
			<tr>
				<th>属性ID</th>
				<th>属性名</th>
				<th>规格</th>
				<th>类型（商品类型）</th>
				<th>操作</th>
			</tr>
		   </thead>
		     <?php $hd["list"]["d"]["total"]=0;if(isset($data) && !empty($data)):$_id_d=0;$_index_d=0;$lastd=min(1000,count($data));
$hd["list"]["d"]["first"]=true;
$hd["list"]["d"]["last"]=false;
$_total_d=ceil($lastd/1);$hd["list"]["d"]["total"]=$_total_d;
$_data_d = array_slice($data,0,$lastd);
if(count($_data_d)==0):echo "";
else:
foreach($_data_d as $key=>$d):
if(($_id_d)%1==0):$_id_d++;else:$_id_d++;continue;endif;
$hd["list"]["d"]["index"]=++$_index_d;
if($_index_d>=$_total_d):$hd["list"]["d"]["last"]=true;endif;?>

		     	<tr>
		     		<th><?php echo $d['ac_id'];?></th>
				<th><?php echo $d['attr_name'];?></th>
				<th>
                                               <?php if($d['is_spec'] == 1){?>
                                               	    <span style="color:red">是</span>
                                               	    <?php  }else{ ?>
                                               	    	不是 
                                               <?php }?>
				</th>
				<th><?php echo $d['add_goods_type_aid'];?></th>
				<th>
					<a href="<?php echo U('del',array('ac_id'=>$d[ac_id]));?>">删除</a>
					<a href="<?php echo U('edit',array('ac_id'=>$d[ac_id]));?>">编辑</a>
				</th>
		     	</tr>
		     <?php $hd["list"]["d"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
		</table>
</body>
</html>















